
import Layout from '../view/layout/Layout.vue'
const UserRoutes = {
    path: "/sys/user",
    component: Layout,
    // 定义/user的子路由
    // 访问/user时，自动跳转到list
    redirect: "/sys/user/list",
    children: [
        {
            path: 'add',
            component: ()=> import('../view/user/Add.vue')
        },
        {
            path: 'list',
            component: ()=> import('../view/user/List.vue')
        }
    ]
}
export default UserRoutes